package edu.hz.dao;

import edu.hz.model.entity.GradeEntity;
import org.apache.ibatis.annotations.Select;

public interface GradeMapper {

    @Select("SELECT * FROM grades WHERE id = #{id}")
    GradeEntity getGradeById(int id);

    @Select("SELECT COUNT(*) FROM grades WHERE id = #{id}")
    int countGradeById(int id);

}
